package com.gwtcx.sample.serendipity.client.util;

import com.google.gwt.core.client.GWT;
import com.gwtcx.sample.serendipity.client.gin.SerendipityGinjector;

public class GinUtil {
	
  private static boolean initialised = false;
    
  private static SerendipityGinjector ginjector = null;

  public static void init() {
	  
    if (! initialised) {
      ginjector = (SerendipityGinjector) GWT.create(SerendipityGinjector.class);

      initialised = true;
    }
  }

  public static SerendipityGinjector getGinjector() {
    return ginjector;
  }  
}
